package com.kakarote.hrm.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 招聘计划日志记录
 * </p>
 *
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wk_hrm_recruit_report_log")
@ApiModel(value = "HrmRecruitReportLog对象", description = "招聘计划日志记录")
public class HrmRecruitReportLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "日志id")
    @TableId(value = "plan_log_id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long planLogId;

    @ApiModelProperty(value = "招聘计划id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long planId;

    @ApiModelProperty(value = "审批状态（0待上报、1上报审核、2上报通过、3上报驳回）")
    private Integer status;

    @ApiModelProperty(value = "日志标题")
    private String title;

    @ApiModelProperty(value = "日志内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人id")
    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createUserId;

    @ApiModelProperty(value = "备注")
    private String remark;
}
